filechooserwidget: Fix rename popover position calculation
authorTimm Bäder <mail@baedert.org>
Thu, 16 Feb 2017 09:32:31 +0000 (10:32 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 17 Feb 2017 17:22:15 +0000 (18:22 +0100)
Since the browse_file_popover is positioned correctly, just convert the
coordinates in the same way we do there.

https://bugzilla.gnome.org/show_bug.cgi?id=778746

gtk/gtkfilechooserwidget.c

index 1df784f508d7960acc9b85c851870bca08bc14f1..d43961dbde2c5abac3cb0c611f7eff1ad89e94cd 100644 (file)
@@ -1629,8 +1629,8 @@ rename_selected_cb (GtkTreeModel *model,
   gtk_tree_view_get_cell_area (GTK_TREE_VIEW (priv->browse_files_tree_view),
                                path, priv->list_name_column, &rect);
 
-  gtk_tree_view_convert_tree_to_widget_coords (GTK_TREE_VIEW (priv->browse_files_tree_view),
-                                               rect.x, rect.y, &rect.x, &rect.y);
+  gtk_tree_view_convert_bin_window_to_widget_coords (GTK_TREE_VIEW (priv->browse_files_tree_view),
+                                                     rect.x, rect.y, &rect.x, &rect.y);
 
   filename = g_file_get_basename (priv->rename_file_source_file);
   gtk_entry_set_text (GTK_ENTRY(priv->rename_file_name_entry), filename);